<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.jd.ty.pojo">
	<class name="Contract" table="CONTRACT"
		schema="TYMS">
		<id name="contractId" type="java.lang.Long">
			<column name="CONTRACT_ID" precision="10" scale="0" />
			<generator class="identity" />
		</id>
		<many-to-one name="employee" class="com.jd.ty.pojo.Employee"    column="EMPLOYEE_ID" />
		<property name="th" type="java.lang.String">
			<column name="CONTRACT_TH" />
		</property>
		<property name="startTime" type="timestamp">
			<column name="START_TIME" />
		</property>
		<property name="endTime" type="timestamp">
			<column name="END_TIME" />
		</property>
		<property name="engageContract" type="java.lang.String">
			<column name="ENGAGE_CONTRACT" />
		</property>
	</class>
</hibernate-mapping>
